DebuggerDomain

class DebuggerDomain : Domain

Debugger domain exposes JavaScript debugging capabilities. It allows setting and removing breakpoints, stepping through execution, exploring stack traces, etc.

Functions

breakpointResolved
Link copied to clipboard
fun breakpointResolved(): Flowable<BreakpointResolvedEvent>
Fired when breakpoint is resolved to an actual script and location.
continueToLocation
Link copied to clipboard
fun continueToLocation(input: ContinueToLocationRequest): Single<RequestResponseFrame>
Continues execution until specific location is reached.
description
Link copied to clipboard
fun description(): String
Returns domain description.
disable
Link copied to clipboard
fun disable(): Single<RequestResponseFrame>
Disables debugger for given page.
enable
Link copied to clipboard
fun enable(input: EnableRequest): Single<EnableResponse>
Enables debugger for the given page.
evaluateOnCallFrame
Link copied to clipboard
fun evaluateOnCallFrame(input: EvaluateOnCallFrameRequest): Single<EvaluateOnCallFrameResponse>
Evaluates expression on a given call frame.
events
Link copied to clipboard
fun events(): Flowable<Event>
Returns flowable capturing all domains events.
fun events(filter: Predicate<Event>): Flowable<Event>
Returns flowable capturing all domains events matching predicate.
fun <T : Event> events(eventClass: Class<T>): Flowable<T>
Returns flowable capturing all domain events of a given type.
fun <T : Event> events(eventClass: Class<T>, filter: Predicate<T>): Flowable<T>
Returns flowable capturing all domain events of a given type matching predicate.
getDependencies
Link copied to clipboard
open override fun getDependencies(): List<Domain>
Returns list of dependant domains that should be enabled prior to enabling this domain.
getPossibleBreakpoints
Link copied to clipboard
Returns possible locations for breakpoint.
getScriptSource
Link copied to clipboard
fun getScriptSource(input: GetScriptSourceRequest): Single<GetScriptSourceResponse>
Returns source for the script with given id.
getStackTrace
Link copied to clipboard
fun getStackTrace(input: GetStackTraceRequest): Single<GetStackTraceResponse>
Returns stack trace with given stackTraceId.
getWasmBytecode
Link copied to clipboard
fun getWasmBytecode(input: GetWasmBytecodeRequest): Single<GetWasmBytecodeResponse>
This command is deprecated.
name
Link copied to clipboard
fun name(): String
Returns domain name.
pause
Link copied to clipboard
fun pause(): Single<RequestResponseFrame>
Stops on the next JavaScript statement.
paused
Link copied to clipboard
fun paused(): Flowable<PausedEvent>
Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
pauseOnAsyncCall
Link copied to clipboard
fun pauseOnAsyncCall(input: PauseOnAsyncCallRequest): Single<RequestResponseFrame>
removeBreakpoint
Link copied to clipboard
fun removeBreakpoint(input: RemoveBreakpointRequest): Single<RequestResponseFrame>
Removes JavaScript breakpoint.
restartFrame
Link copied to clipboard
fun restartFrame(input: RestartFrameRequest): Single<RestartFrameResponse>
Restarts particular call frame from the beginning.
resume
Link copied to clipboard
fun resume(input: ResumeRequest): Single<RequestResponseFrame>
Resumes JavaScript execution.
resumed
Link copied to clipboard
fun resumed(): Flowable<RawEvent>
Fired when the virtual machine resumed execution.
scriptFailedToParse
Link copied to clipboard
fun scriptFailedToParse(): Flowable<ScriptFailedToParseEvent>
Fired when virtual machine fails to parse the script.
scriptParsed
Link copied to clipboard
fun scriptParsed(): Flowable<ScriptParsedEvent>
Fired when virtual machine parses script.
searchInContent
Link copied to clipboard
fun searchInContent(input: SearchInContentRequest): Single<SearchInContentResponse>
Searches for given string in script content.
setAsyncCallStackDepth
Link copied to clipboard
fun setAsyncCallStackDepth(input: SetAsyncCallStackDepthRequest): Single<RequestResponseFrame>
Enables or disables async call stacks tracking.
setBlackboxedRanges
Link copied to clipboard
fun setBlackboxedRanges(input: SetBlackboxedRangesRequest): Single<RequestResponseFrame>
Makes backend skip steps in the script in blackboxed ranges.
setBlackboxPatterns
Link copied to clipboard
fun setBlackboxPatterns(input: SetBlackboxPatternsRequest): Single<RequestResponseFrame>
Replace previous blackbox patterns with passed ones.
setBreakpoint
Link copied to clipboard
fun setBreakpoint(input: SetBreakpointRequest): Single<SetBreakpointResponse>
Sets JavaScript breakpoint at a given location.
setBreakpointByUrl
Link copied to clipboard
fun setBreakpointByUrl(input: SetBreakpointByUrlRequest): Single<SetBreakpointByUrlResponse>
Sets JavaScript breakpoint at given location specified either by URL or URL regex.
setBreakpointOnFunctionCall
Link copied to clipboard
Sets JavaScript breakpoint before each call to the given function.
setBreakpointsActive
Link copied to clipboard
fun setBreakpointsActive(input: SetBreakpointsActiveRequest): Single<RequestResponseFrame>
Activates / deactivates all breakpoints on the page.
setInstrumentationBreakpoint
Link copied to clipboard
Sets instrumentation breakpoint.
setPauseOnExceptions
Link copied to clipboard
fun setPauseOnExceptions(input: SetPauseOnExceptionsRequest): Single<RequestResponseFrame>
Defines pause on exceptions state.
setReturnValue
Link copied to clipboard
fun setReturnValue(input: SetReturnValueRequest): Single<RequestResponseFrame>
Changes return value in top frame.
setScriptSource
Link copied to clipboard
fun setScriptSource(input: SetScriptSourceRequest): Single<SetScriptSourceResponse>
Edits JavaScript source live.
setSkipAllPauses
Link copied to clipboard
fun setSkipAllPauses(input: SetSkipAllPausesRequest): Single<RequestResponseFrame>
Makes page not interrupt on any pauses (breakpoint, exception, dom exception etc).
setVariableValue
Link copied to clipboard
fun setVariableValue(input: SetVariableValueRequest): Single<RequestResponseFrame>
Changes value of variable in a callframe.
stepInto
Link copied to clipboard
fun stepInto(input: StepIntoRequest): Single<RequestResponseFrame>
Steps into the function call.
stepOut
Link copied to clipboard
fun stepOut(): Single<RequestResponseFrame>
Steps out of the function call.
stepOver
Link copied to clipboard
fun stepOver(input: StepOverRequest): Single<RequestResponseFrame>
Steps over the statement.

Sources

jvm source
Link copied to clipboard